﻿using System.Collections.Generic;
using BO;
using Model;

namespace Controller
{
    /// <summary>
    /// Summary description for UserController
    /// </summary>
    public class UserController
    {
        private static UserBO _userBo ;
        public UserController()
        {
            _userBo = new UserBO();
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public List<User> GetInfoUser(int id)
        {
            return _userBo.GetInfoUser(id);
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="user"></param>
        /// <returns></returns>
        public int AddUser(User user)
        {
            return _userBo.AddUser(user);
        }

        public List<User> CheckExistsUser(User _user)
        {
            return _userBo.CheckExistsUser(_user);
        }
    }
}